package com.action.log;

import java.io.IOException;
import java.io.PrintWriter;

import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import com.business.log.LogInfoBus;
import com.config.SystemGlobals;

public class DelLog extends HttpServlet {

	private static final long serialVersionUID = 1L;
	
	public void doPost(HttpServletRequest request, HttpServletResponse response)
			throws ServletException, IOException {
		String contentType = SystemGlobals.getValue("contentType");
		PrintWriter out = response.getWriter();
		response.setContentType(contentType);
		if (request.getParameter("logno") != null) {
			String logNos[] = request.getParameterValues("logno");
			LogInfoBus lib = new LogInfoBus();
			lib.del(logNos);
			out
					.print("<script>alert(\"删除日志成功\");window.location=\"user/loglist.jsp\";</script>");
			out.close();
		}
	}
}
